home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Plus 2004 #11
/
Amiga Plus CD - 2004 - No. 11.iso
/
AmiSoft
/
Dev
/
basic
/
blitzgtfix.lha
/
BlitzGTFix
/
BBGTLib_Examples
/
gtgetstring.bb2
< prev
next >
Wrap
Text File
|
2002-01-31
|
739b
|
31 lines
WbToScreen 3
Use Screen 3
LoadFont 2,"opal.font",9
Use IntuiFont 2
foo.l=GTString(0,1,20,20,150,15,"Normal",#PLACETEXT_ABOVE,50)
NPrint Hex$(foo)
foo.l=GTText(0,2,20,60,150,15,"Default",#PLACETEXT_ABOVE,"foo!")
NPrint Hex$(foo)
AddIDCMP #STRINGIDCMP
Window 0,0,0,600,300,$100f,"jjlk",-1,-1
DefaultOutput
AttachGTList 0,0
While ev.l<>#IDCMP_CLOSEWINDOW
ev.l=WaitEvent
Select ev
Case #IDCMP_GADGETDOWN
NPrint "String gadget ",GadgetHit," entered"
Case #IDCMP_GADGETUP
NPrint "String gadget ",GadgetHit," exited with code ",EventCode
NPrint "GTString contents = ",GTGetString(0,1)
NPrint "GTText contents = ",GTGetString(0,2)
End Select
Wend
DetachGTList 0
End